﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MessageSystem.Managed.Infrastructure;
using MessageSystem.Managed.Interface;

namespace MessageSystem.Managed.Http
{
    class MessageSystem:IMessageSystem
    {
        public void Create(Options op)
        {
            m_allChannels = new Dictionary<string, MessageChannel>();
        }

        public void ListenLocalSystem(string ip, ushort port, OnAccept a)
        {
            throw new NotImplementedException();
        }

        public void ConnectRemoteSystem(string ip, ushort port, OnConnectSuccess s, OnConnectFailed f)
        {
            throw new NotImplementedException();
        }

        public void Poll(int wait)
        {
            throw new NotImplementedException();
        }

        internal void AddMessageChannel(MessageChannel mc)
        {
            m_allChannels[mc.Url] = mc;
        }

        Dictionary<string, MessageChannel> m_allChannels;
    }
}
